<!DOCTYPE html>
<html>
<head>
<meta charset="${charset}">
<title>${table.comment}(${table.tableName})</title>

<style type="text/css">
table th{
	text-align: center;
	font-weight: bold;
	height: 26px;
	line-height: 26px;
	font-size: 13px;
}

table thead th{
	line-height: 26px;
    border: 1px solid #CCC;
    /* background: #4396ca; */
    border: 1pt 1pt 1pt 1pt solid #4f81bd;
}

table tbody th {
	line-height: 26px;
    border: 1px solid #CCC;
    /* background: #4f81bd; */
    border: 1pt 1pt 1pt 1pt solid #4f81bd;
}

.c1 {
    width: 120px;
    border-left: 1pt solid #4f81bd;
}
.c2 {
	width: 120px;
}
.c3 {
    width: 70px;
}
.c4 {
    width: 270px;
}
.td1 {
    height: 20px;
    font-size: 12px;
    border: 1px solid #CCC;
    /* background-color: #B8CCE4; */
    border-right: 1pt solid #4f81bd;
    border-top: none;
    border-bottom: 1pt solid #4f81bd;
}
.td2 {
    height: 20px;
    font-size: 12px;
    border: 1px solid #CCC;
    background-color: white;
    border-right: 1pt solid #4f81bd;
    border-top: none;
    border-bottom: 1pt solid #4f81bd;
}
</style>

</head>
<body>
<table style="border-collapse: collapse; mso-table-layout-alt: fixed; padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt;">
	<thead style="height: 15.6000pt;">
		<th colspan="4">
			${table.tableName}
			[#if table.comment??]（${table.comment}）[/#if]
			[#if table.shardings?size > 0]（分片表）[/#if]
		</th>
	</thead>
	<tbody>
		<tr style="height: 15.6000pt;">
			<th><span>列名</span></th>
			<th><span>类型</span></th>
			<th><span>默认值</span></th>
			<th><span>描述</span></th>
		</tr>
		[#list table.tableColumns as col]
			[#if col_index % 2 == 0]
			<tr>
				<td class="c1 td1">${col.name}</td>
				<td class="c2 td1">${col.jdbcType}</td>
				<td class="c3 td1">${col.columnDefault!"&nbsp;"}</td>
				<td class="c4 td1">${col.comment!"&nbsp;"}</td>
			</tr>
			[#else]
			<tr>
				<td class="c1 td2">${col.name}</td>
				<td class="c2 td2">${col.jdbcType}</td>
				<td class="c3 td2">${col.columnDefault!"&nbsp;"}</td>
				<td class="c4 td2">${col.comment!"&nbsp;"}</td>
			</tr>
			[/#if]
		
		[/#list]
	</tbody>
</table>
</body>
</html>